<?php

include_once($_SERVER['DOCUMENT_ROOT']."/RecJP/inc/session_start.php");
//include_once($_SERVER['DOCUMENT_ROOT']."/RecJP/inc/session_config.php");
if (isset($_SESSION['username']) == false || empty($_SESSION['username'])) {
    //$_SESSION['username'] = "tmp";
    //$_SESSION['userid'] = "1";

    $SCRIPT_NAME = $_SERVER['SCRIPT_NAME'];
    $tmp = explode("/", $SCRIPT_NAME);
    if (strtolower(end($tmp)) != "login.php") {
        header("location: Login.php");
    }
}